
#import <Foundation/Foundation.h>
@class FAMFoodmateUserdataModel;
@class FAMGetFoodmateUserdataModel;
@class FAMFoodrecordListModel;
@class FAMFoodrecordModel;
@class FAMFoodmateStatisticsModel;
@class FAMFoodmateUploadModel;
@class FAMFoodIdentifyModel;
NS_ASSUME_NONNULL_BEGIN
typedef void (^SuccessBlock)(id requestDic, NSString * msg);
typedef void (^FailureBlock)(NSString *errorInfo);
@interface FAMHttpTool : NSObject

+ (void)FAM_PostFoodmateUserdataWithParameters:(NSMutableDictionary *)parameters success:(void(^)(FAMFoodmateUserdataModel *,NSString *))success failure:(FailureBlock)failure;
+ (void)FAM_GetFoodmateSuggestWithParameters:(NSMutableDictionary * __nullable)parameters targetType:(NSString *)targetType success:(void(^)(FAMFoodmateUserdataModel *,NSString *))success failure:(FailureBlock)failure;
+ (void)FAM_GetFoodmateUserdata:(void(^)(FAMGetFoodmateUserdataModel *,NSString *))success failure:(FailureBlock)failure;

+ (void)FAM_PutFoodmateUserdataWithParameters:(NSMutableDictionary *)parameters  success:(void(^)(FAMFoodmateUserdataModel *,NSString *))success failure:(FailureBlock)failure;

+ (void)FAM_GetFoodmateFoodrecordWithDate:(NSString *)date Success:(void(^)(FAMFoodrecordListModel *,NSString *))success failure:(FailureBlock)failure;

+ (void)FAM_PostFoodmateFoodrecordWithParameters:(NSMutableDictionary * __nullable)parameters success:(void(^)(FAMFoodrecordModel *,NSString *))success failure:(FailureBlock)failure;

+ (void)FAM_PutFoodmateFoodrecordWithParameters:(NSMutableDictionary * __nullable)parameters success:(void(^)(FAMFoodrecordModel *,NSString *))success failure:(FailureBlock)failure;


+ (void)FAM_DeleteFoodmateFoodrecordWithId:(NSString *)ids success:(void(^)(FAMFoodmateUserdataModel *,NSString *))success failure:(FailureBlock)failure;

+ (void)FAM_GetFoodmateStatisticsWithData:(NSString *)beginAndEndDate success:(void(^)(FAMFoodmateStatisticsModel *,NSString *))success failure:(FailureBlock)failure;

+ (void)FAM_UploadImageWithFile:(UIImage *)fileImage success:(void(^)(FAMFoodmateUploadModel *,NSString *))success failure:(FailureBlock)failure;


+ (void)FAM_PostFoodIdentifyWithParameters:(NSMutableDictionary * __nullable)parameters success:(void(^)(FAMFoodIdentifyModel *,NSString *))success failure:(FailureBlock)failure;

+ (void)FAM_PostFoodReidentifyWithParameters:(NSMutableDictionary * __nullable)parameters success:(void(^)(FAMFoodIdentifyModel *,NSString *))success failure:(FailureBlock)failure;

+ (void)FAM_PostFoodmateFoodRecordBatchWithParameters:(NSMutableDictionary * __nullable)parameters success:(void(^)(FAMFoodIdentifyModel *,NSString *))success failure:(FailureBlock)failure;
@end

NS_ASSUME_NONNULL_END
